'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, TEXT } = app.Sequelize;
  const Article_comments = app.model.define('article_comments', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    article_id: INTEGER,
    content: TEXT,
    userId: INTEGER,
    username: STRING(20),
    state: STRING(2),
    create_time: DATE,
  }, {
      freezeTableName: true,
      tableName: 'article_comments',
      timestamps: false,
    });


  return Article_comments;
};
